| Conditions | 1 |
| Paths | 1 |
| Total Lines | 27 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | |||
| 2 | $(function () { |
||
| 3 | $('.message .close').on('click', function () { |
||
| 4 | $(this).closest('.message').transition('fade') |
||
| 5 | }) |
||
| 6 | |||
| 7 | $('.ui.sidebar').sidebar('attach events', '.toc.item') |
||
| 8 | $('.ui.dropdown').dropdown() |
||
| 9 | $('.menu .item').tab() |
||
| 10 | |||
| 11 | $('#open-menu').click(function (){ |
||
| 12 | $('#hamburger-menu').toggleClass('open') |
||
| 13 | $('#menu').transition('fade left', '50ms') |
||
| 14 | }) |
||
| 15 | |||
| 16 | $('.item h3').click(function () { |
||
| 17 | console.log($(this).closest('i').find('.down')) |
||
|
|
|||
| 18 | if ($(this).children('i').find('.down').length === 0 ) { |
||
| 19 | $(this).children('i').find('.down').addClass('up').removeClass('down') |
||
| 20 | |||
| 21 | } else { |
||
| 22 | $(this).children('i').find('.up').addClass('down').removeClass('up') |
||
| 23 | } |
||
| 24 | |||
| 25 | $(this).closest('div').find('.collapsible').transition('fade down') |
||
| 26 | }) |
||
| 27 | |||
| 28 | }) |
||
| 29 |